#coding:utf-8

##建立用户信息库，下面中文都是备注
from django.db import models
class Admin(models.Model):
    JOB_STATUS = (
        (0, '在线'),
        (1, '下线'),
    )


    job_status = models.SmallIntegerField('状态', choices = JOB_STATUS, default = 1)
    server_name = models.CharField('服务器名称',max_length = 1000)
    server_ip = models.CharField('服务器IP',max_length = 1000)
    server_port = models.CharField('服务器端口',max_length = 100)
    job_work = models.CharField('业务',max_length = 1000)
    job_owner = models.CharField('负责人',max_length = 100)
    def __str__(self):
        return u'%s %s %s %s %s %s' % (self.job_status,self.server_name,self.server_ip,self.server_port,self.job_work,self.job_owner)
